<?php
$menu = new class_menu();

//menu left
//echo "menu_left_id:$menu_left_id<br>";
$list_menu_bar = $menu->MenuLeft_TextBullet_ncap($menu_left_id);
$str_htm = ereg_replace("@menu_left@", $list_menu_bar, $str_htm);

/*
//menu bar
$list_menu_bar = $menu->MenuBar_Text_imgbg($arr_menu_id[$langid]["menu_bar"]);
$str_htm = ereg_replace("@menu_bar@", $list_menu_bar, $str_htm);
*/
//*
//menu bar
$list_menu_bar = $menu->MenuBar_Hover($arr_menu_id[$langid]["menu_bar"]);
$str_htm = ereg_replace("@menu_bar@", $list_menu_bar, $str_htm);

//Write menu bar phan cap
$list_menu_all = $menu->WriteMenuBar_Sub($arr_menu_id[$langid]["menu_bar"]);
$str_htm = ereg_replace("//@list_menu_bar@",$list_menu_all,$str_htm);
//==========================

//menu right
$list_menu= $menu->MenuRight_Text($arr_menu_id[$langid]["menu_right"]);
$str_htm = ereg_replace("@menu_right@", $list_menu, $str_htm);


//menu bottom
$list_menu_bottom = $menu->MenuBar_Text($arr_menu_id[$langid]["menu_bottom"], "menubottom_text", "menubottom_text_nolink");
$str_htm = ereg_replace("@menu_bottom@", $list_menu_bottom, $str_htm);

//Write menu left phan cap
$list_menu_all = $menu->WriteMenuLeft_Sub($arr_menu_id[$langid]["menu_left"]);
$str_htm = ereg_replace("@list_menu_all@",$list_menu_all,$str_htm);	


$str_htm = ereg_replace("@menuItemBgColor@",LEFTMENU_menuItemBgColor,$str_htm);	//nen binh thuong
$str_htm = ereg_replace("@menuHiliteBgColor@",LEFTMENU_menuHiliteBgColor,$str_htm);	 //nen re chuot
$str_htm = ereg_replace("@fontColor@",LEFTMENU_fontColor,$str_htm);	// mau chu
$str_htm = ereg_replace("@bgColor@",LEFTMENU_bgColor,$str_htm); // mau nen


//*/
//========================
// Title
//========================
//echo "title: $title<br>";

$title = get_values("select name from danhba_cat where id='$cat_id'");
$str_htm = ereg_replace("@title@",$title,$str_htm);	

?>